Fix runtime bugs, clean up code, add new commands#18
Merged
Conversation
Bug fixes: - Fix adminIds variable shadowing in POST /setup (const vs let conflict) - Fix CSS syntax error in dashboard.ejs (orphaned block + extra brace) - Fix purge command: addNumberOption -> addIntegerOption - Fix timeout command: addNumberOption -> addIntegerOption - Fix kick command: send DM before kick (member unreachable after) - Fix ensureConfig() crash when MongoDB not configured - Fix GET /control/config missing guild variable for dashboard.ejs - Add sameSite attribute to session cookie Cleanup: - Remove all eslint-disable and noisy comments for clean code - Remove unused dashboard backup/old view files - Remove start.log build artifact - Update .gitignore New features: - Add 8ball command (fun) - Add roleinfo command (utility) - Add channelinfo command (utility) - Add embed command (utility) - Add warn command (moderation) - Add GuildModeration intent for audit log support Co-authored-by: TurboRx <[email protected]>
Copilot
AI
changed the title
[WIP] Scan repository for issues and improve code quality
Fix runtime bugs, clean up code, add new commands
Feb 7, 2026
Owner
|
LGTM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Repo-wide audit fixing runtime bugs, removing dead code/comments, and adding new slash commands.
Bug Fixes
adminIdsshadowing inPOST /setup:const adminIdsshadowed the outerlet adminIds, causing a TypeError on reassignment. Renamed local toinputAdminIds.dashboard.ejs:.user-chipblock orphaned outside its@media (max-width: 375px)query with a stray}, breaking layout on small screens.purgeandtimeoutcommands usedaddNumberOption/getNumberinstead ofaddIntegerOption/getInteger— Discord expects integer type for these options.kickcommand DM'dtarget(GuildMember) after kick — member is unreachable post-kick. Now DMstarget.userbefore kicking.ensureConfig()calledConfig.findOne()without checking MongoDB connection state — crashes when mongo is unconfigured.GET /control/configrendereddashboard.ejswithout passingguild, which the template references.Security
sameSite: 'lax'to session cookie.Cleanup
eslint-disable-next-lineand obvious inline comments across the codebase.dashboard-backup.ejs,dashboard-new.ejs,dashboard-old.ejs,start.log..gitignorefor backup files and logs.New Commands
/8ball/warn/embed/roleinfo/channelinfoGuildModerationintent for audit log event support.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.